﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="ThemSP.aspx.cs" Inherits="admin_ThemSP" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:101%; height: 305px;">
        <tr>
            <td width="30%">
                <asp:Label ID="Label1" runat="server" Text="Tên Máy"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenMay" runat="server" Width="214px"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTenMay" ErrorMessage="Nhập tên máy tính!"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Giá Bán"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtGiaBan" runat="server" Width="215px"></asp:TextBox>
                <asp:Label ID="Label9" runat="server" Text="VND"></asp:Label>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtGiaBan" ErrorMessage="Nhập giá bán!"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ControlToValidate="txtGiaBan" ErrorMessage="Giá bán chưa đúng!" 
                    MaximumValue="10000000" MinimumValue="1" Type="Double"></asp:RangeValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Số Lượng"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtSoLuong" runat="server" Width="215px"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtSoLuong" ErrorMessage="Nhập số lượng!"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator2" runat="server" 
                    ControlToValidate="txtSoLuong" ErrorMessage="Số lượng không hợp lệ!" 
                    MaximumValue="10000000" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Mã Hãng SX"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlMaHangSX" runat="server" Width="122px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="Mô Tả"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMoTa" runat="server" Width="216px" Height="36px" 
                    TextMode="MultiLine"></asp:TextBox>
                (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtMoTa" ErrorMessage="Vui lòng nhập mô tả!"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Loại Máy Tính"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DDLLoaiMayTinh" runat="server" 
                    Width="135px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="Hình Ảnh"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="UpLoadHinhAnh" runat="server" Width="211px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label8" runat="server" Text="Hiển Thị"></asp:Label>
            </td>
            <td>
                <asp:RadioButton ID="rbCo" runat="server" Text="Có" GroupName="HienThi" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RadioButton ID="rbKhong" runat="server" Text="Không" GroupName="HienThi" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btThem" runat="server" Text="Add" Width="81px" 
                    onclick="btThem_Click" Height="43px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btCancel" runat="server" Text="Cancel" Width="68px" 
                    onclick="btCancel_Click" Height="43px" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>

